//
// Created by 11510 on 2024/7/16.
//

#ifndef INC_02_META_OBJECT_MYCLASS_H
#define INC_02_META_OBJECT_MYCLASS_H

#include <QObject>

class MyClass : public QObject {
Q_OBJECT
public:
    explicit MyClass(QObject *parent = nullptr):
            QObject(parent),m_health(100), m_mana(20){}

    Q_PROPERTY(int health MEMBER m_health);
    Q_PROPERTY(int mana MEMBER m_mana);

signals:
private:
    int m_health;
    int m_mana;
};


#endif //INC_02_META_OBJECT_MYCLASS_H
